<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>zdog</title>
    <style type="text/css">
    *{
      margin: 0;
      padding: 0;
    }body{

      overflow: hidden;
    }
        .zdog-canvas {
            /*给class="zdog-canvas"的画布添加背景*/
            background: #FDB;
            display: block;
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body>
<!--Zdog在<canvas>或<svg>元素上呈现。-->
<!--设置画布2，及长宽-->
<canvas id="zdog-canvas" width="1280" height="720" ></canvas>
<!--引入zdog文件-->
<script src="https://unpkg.com/zdog@1/dist/zdog.dist.min.js"></script>
<script src="./index.js"></script>
</body>
</html>